From 810c71a98d562842723c818dea46bbbd8d041658 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 12 Mar 2004 17:42:30 +0000 Subject: [PATCH] Duplicate icon if dynamic. (Solves crash on Mapsource with KMA corruption.) --- gpsbabel/waypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index 4f5e66bc8..80ee78f81 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -50,6 +50,8 @@ waypt_dupe(const waypoint *wpt) tmp->url = xstrdup(wpt->url); if (wpt->url_link_text) tmp->url_link_text = xstrdup(wpt->url_link_text); + if (wpt->icon_descr && wpt->icon_descr_is_dynamic) + tmp->icon_descr = xstrdup(wpt->icon_descr); /* * It's important that this duplicated waypoint not appear * on the master Q. -- 2.30.2